package com.ktwlsoft.archivemanage.domain.dao.repository.guiBusiness;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import com.ktwlsoft.archivemanage.domain.dao.entity.guiBusiness.GuidanceApply;

/**
 * guidance_apply--指导申请
 *
 * @author zhuhe on 2020-04-28 14:05:03
 * @version 1.0
 */
@Mapper
public interface IGuidanceApplyMapper {
	
	/**
	 * 查询列表 on 2020-04-28 14:05:03
	 * @param jsonObject jsonObject
	 * @return List<GuidanceApply>
	 */
	List<GuidanceApply> findList(JSONObject jsonObject);

	/**
	  * 查询列表 on 2020/4/28 14:33
	  *
	  * @param jsonObject jsonObject
	  * @return List<GuidanceApply>
	  */
	List<JSONObject> findPage(JSONObject jsonObject);

	/**
	 * 根据id查询信息 on 2020-04-28 14:05:03
	 * @param id id
	 * @return GuidanceApply
	 */
	GuidanceApply getById(Long id);

	/**
	 * 根据id删除信息 on 2020-04-28 14:05:03
	 * @param id id
	 * @return int
	 */
	int deleteById(Long id);
	
	/**
	 * 根据id集合批量删除信息 on 2020-04-28 14:05:03
	 * @param ids ids
	 * @return int
	 */
	int deleteByIds(List<Long> ids);

	/**
	 * 插入 on 2020-04-28 14:05:03
	 * @param guidanceApply guidanceApply
	 * @return int
	 */
    int insert(GuidanceApply guidanceApply);

	/**
	 * 批量插入 2020-04-28 14:05:03
	 *
	 * @param list list
	 * @return int
	 */
	int manyInsert(List<GuidanceApply> list);

	/**
	 * 更新 on 2020-04-28 14:05:03
	 * @param guidanceApply guidanceApply
	 * @return int
	 */
    int update(GuidanceApply guidanceApply);
    
    /**
      * 获取申请编号 on 2020/4/28 15:11
      * @param userId userId
      * @return String
      */
    String getApplyNum(Long userId);
}
